import request from '@/utils/request'

// 查询锁定列表
export function listLockRyDepotItem(query) {
  return request({
    url: '/warehouse/LockRyDepotItem/list',
    method: 'get',
    params: query
  })
}

// 查询锁定详细
export function getLockRyDepotItem(id) {
  return request({
    url: '/warehouse/LockRyDepotItem/' + id,
    method: 'get'
  })
}

// 新增锁定
export function addLockRyDepotItem(data) {
  return request({
    url: '/warehouse/LockRyDepotItem',
    method: 'post',
    data: data
  })
}

// 修改锁定
export function updateLockRyDepotItem(data) {
  return request({
    url: '/warehouse/LockRyDepotItem',
    method: 'put',
    data: data
  })
}

// 删除锁定
export function delLockRyDepotItem(id) {
  return request({
    url: '/warehouse/LockRyDepotItem/' + id,
    method: 'delete'
  })
}
